package com.jbbmobile.hackathon.GWT.RPC.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("PersonService")
public interface PersonService extends RemoteService {
	public static class Util {
		private static PersonServiceAsync instance;
		public static PersonServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(PersonService.class);
			}
			return instance;
		}
	}
	public void createPerson(String name, String phone, String email, String address, int type) throws Exception;
}
